package com.chenyongjing.design.pattern.flyweight.pool;

import java.sql.Connection;

public class Test {
    public static void main(String[] args) {
        ConnectionPool pool =new ConnectionPool();
        // 从连接池中获取连接
        Connection conn = pool.getConnection();
        System.out.println(conn);
        // 使用完成后释放来凝结
        pool.release(conn);
    }
}
